package com.cloudfun.campusshare.code.generate;

/**
 * Created by Huqin on 2020/5/26
 */
public enum JavaFileDefType {
    REPO("", "Repo", ".repo"),
    DTO("DTO", "DTO", ".common.model.dto"),
    VO("VO", "VO", ".common.model.vo"),
    LIST_VO("列表VO", "ListVO", ".common.model.vo"),
    SERVICE("", "Service", ".service"),
    SERVICE_IMPL("", "ServiceImpl", ".service.impl"),
    CONTROLLER("模块", "Controller", ".controller"),
    ;
    private String desc;
    private String fileNameSuffix;
    private String packageSuffix;

    JavaFileDefType(String desc, String fileNameSuffix, String packageSuffix) {
        this.desc = desc;
        this.fileNameSuffix = fileNameSuffix;
        this.packageSuffix = packageSuffix;
    }

    public String getDesc() {
        return desc;
    }

    public String getFileNameSuffix() {
        return fileNameSuffix;
    }

    public String getPackageSuffix() {
        return packageSuffix;
    }
}
